<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Options for Remote Torrent Adder</title>
	<script type="text/javascript" src="miscapis/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="miscapis/jquery-ui-1.8.16.custom.min.js"></script>
	<script type="text/javascript" src="miscapis/options.js"></script>
	<link rel="stylesheet" type="text/css" href="options.css" />
	<link rel="stylesheet" type="text/css" href="themes/smoothness/jquery-ui-1.8.16.custom.css" />
</head>
<body>
	<h1><img src="icons/BitTorrent48.png" alt="BitTorrent!" /> Remote Torrent Adder Options</h1>
	<div id="tabs">
		<ul>
			<li><a href="#tabs-1">WebUI</a></li>
			<li><a href="#tabs-2">Notifications</a></li>
			<li><a href="#tabs-3">Link Catching</a></li>
			<li><a href="#tabs-4">About/Support</a></li>
		</ul>
		
		<div id="tabs-1"><table>
			<tbody>
				<tr>
					<td><span class="title"><label for="client">Client:</label></span></td>
					<td><select id="client">
							<option>Buffalo WebUI (OLD!)</option>
							<option>Deluge WebUI</option>
							<option>pyrt WebUI</option>
							<option>qBittorrent WebUI</option>
							<option>ruTorrent WebUI</option>
							<option>Torrentflux WebUI</option>
							<option>Transmission WebUI</option>
							<option>uTorrent WebUI</option>
							<option>Vuze SwingUI</option>
							<option>Vuze HTML WebUI</option>
							<option>Vuze Remote WebUI</option>
							<option>Tixati WebUI</option>
						</select><br />
						<span class="tip">BitTorrent client type</span></td>
				</tr>
				<tr>
					<td><span class="title"><label for="host">Host</label></span></td>
					<td><input type="text" id="host" /><br />
						<span class="tip">The ip/hostname to connect to</span></td>
				</tr>
				<tr>
					<td><span class="title"><label for="port">Port</label></span></td>
					<td><input type="text" id="port" /><br />
						<span class="tip">The remote port</span></td>
				</tr>
				<tr>
					<td><span class="title"><label for="hostsecure">SSL</label></span></td>
					<td><input type="checkbox" id="hostsecure" /><br />
						<span class="tip">Check if the WebUI runs on SSL (http<strong>s</strong>://). Don't forget to set the Port to 443!</span></td>
				</tr>
				<tr>
					<td><span class="title"><label for="login">Username</label></span></td>
					<td><input type="text" id="login" /><br />
						<span class="tip">Login name of the WebUI</span></td>
				</tr>
				<tr>
					<td><span class="title"><label for="password">Password</label></span></td>
					<td><input type="password" id="password" /><br />
						<span class="tip">Password of the WebUI</span></td>
				</tr>
				<tr>
					<td colspan="2"><br/><h3>WebUI Specifics</h3></td>
				</tr>
			</tbody>
			<tbody id="rutorrentspecifics" class="specifics">
				<tr>
					<td><span class="title"><label for="ruTorrentrelativepath">Relative path</label></span></td>
					<td><input type="text" id="ruTorrentrelativepath" /><br />
						<span class="tip">Enter only the text in quotation marks: http://someserver.com&quot;<strong>/some/path/to/webui</strong>&quot;/<br />
							Note: this folder should contain the "php" directory.</span></td>
				</tr>
				<tr>
					<td><span class="title"><label for="rutorrentlabel">Label</label></span></td>
					<td><input type="text" id="rutorrentlabel" /><br />
						<span class="tip">Default label to use for added torrents.</span></td>
				</tr>
				<tr>
					<td><span class="title"><label for="rutorrentdirectory">Directory</label></span></td>
					<td><input type="text" id="rutorrentdirectory" /><br />
						<span class="tip">Default directory to store added torrents in. This should be an absolute path. It should be inside your rtorrent configuration's default directory for torrents.</span></td>
				</tr>
				<tr>
					<td><span class="title"><label for="rutorrentdirlabelask">Label/Directory<br/>interactivity</label></span></td>
					<td><input type="checkbox" id="rutorrentdirlabelask" /><br />
						<span class="tip">Enable this to always ask for a label/directory combination upon adding torrents.</span></td>
				</tr>
			</tbody>
			<tbody id="torrentfluxspecifics" class="specifics">
				<tr>
					<td><span class="title"><label for="torrentfluxrelativepath">Relative path</label></span></td>
					<td><input type="text" id="torrentfluxrelativepath" /><br />
						<span class="tip">Enter only the text in quotation marks: http://someserver.com&quot;<strong>/some/path/to/webui</strong>&quot;/<br />
							Note: this directory should contain the files "login.php"/"index.php"</span></td>
				</tr>
			<tbody id="transmissionspecifics" class="specifics">
				<tr>
					<td colspan="2">There are no specific settings for Transmission.</td>
				</tr>
			</tbody>
			<tbody id="utorrentspecifics" class="specifics">
				<tr>
					<td><span class="title"><label for="utorrentrelativepath">Relative path</label></span></td>
					<td><input type="text" id="utorrentrelativepath" /><br />
						<span class="tip">Enter only the text in quotation marks: http://someserver.com&quot;<strong>/gui/</strong>&quot;<br />
							Note: Unless you're doing reverse-proxying, this field should be left empty</span></td>
				</tr>
			</tbody>
			<tbody id="delugewebuispecifics" class="specifics">
				<tr>
					<td><span class="title"><label for="delugerelativepath">Relative path</label></span></td>
					<td><input type="text" id="delugerelativepath" /><br />
						<span class="tip">Enter only the text in quotation marks: http://someserver.com&quot;<strong>/gui</strong>&quot;/<br />
							Note: Unless you're doing reverse-proxying, this field should be left empty</span></td>
				</tr>
			</tbody>
			<tbody id="vuzeswingspecifics" class="specifics">
				<tr>
					<td colspan="2">There are no specific settings for Vuze SwingUI.</td>
				</tr>
			</tbody>
			<tbody id="vuzehtmlspecifics" class="specifics">
				<tr>
					<td colspan="2">There are no specific settings for Vuze HTML WebUI.</td>
				</tr>
			</tbody>
			<tbody id="vuzeremotespecifics" class="specifics">
				<tr>
					<td colspan="2">There are no specific settings for Vuze Remote.</td>
				</tr>
			</tbody>
			<tbody id="buffalospecifics" class="specifics">
				<tr>
					<td colspan="2">There are no specific settings for Buffalo WebUI.</td>
				</tr>
			</tbody>
			<tbody id="qbittorrentspecifics" class="specifics">
				<tr>
					<td colspan="2">There are no specific settings for qBittorrent WebUI.</td>
				</tr>
			</tbody>
			<tbody id="pyrtwebuispecifics" class="specifics">
				<tr>
					<td colspan="2">There are no specific settings for pyrt WebUI.</td>
				</tr>
			</tbody>
			<tbody id="tixatiwebuispecifics" class="specifics">
				<tr>
					<td colspan="2">There are no specific settings for Tixati WebUI.</td>
				</tr>
			</tbody>
		</table></div>
		
		<div id="tabs-2"><table>
			<tr>
				<td><span class="title"><label for="linksfoundindicator">Address bar indicator</label></span></td>
				<td><input type="checkbox" id="linksfoundindicator" /><br />
					<span class="tip">Enabling this will cause an indicator icon to appear in every page's address bar where the extension found torrent links matching the filters defined in &quot;Link Catching&quot;</span></td>
			</tr>
			<tr>
				<td><span class="title"><label for="showpopups">Popups</label></span></td>
				<td><input type="checkbox" id="showpopups" /><br />
					<span class="tip">Enable this to view success/error messages as desktop notification popups</span></td>
			</tr>
			<tr>
				<td><span class="title"><label for="popupduration">Popup Duration</label></span></td>
				<td><input type="text" id="popupduration" /> msec<br />
					<span class="tip">Duration of time until the popups are removed</span></td>
			</tr>
			<tr>
				<td><span class="title"><label for="notificationtest">Test it</label></span></td>
				<td><button id="notificationtest" >hit me</button></td>
			</tr>
		</table></div>
		
		<div id="tabs-3"><table>
			<tr>
				<td><span class="title"><label for="catchfromcontextmenu">Context menu</label></span></td>
				<td><input type="checkbox" id="catchfromcontextmenu" /><br />
					<span class="tip">Enable this to add a context menu entry for links. You must restart for this setting to take effect.</span></td>
			</tr>
			<tr>
				<td><span class="title"><label for="catchfrompage">Clicks on links</label></span></td>
				<td><input type="checkbox" id="catchfrompage" /><br />
					<span class="tip">Enable this to intercept links from pages where torrent links were found and automatically send them to the WebUI instead of downloading them locally (can be overridden by holding CTRL/ALT/SHIFT).</span><br />
					<div style="float:left;"><select id="linkmatches"></select></div>
					<div style="position:relative; float:left;"><button id="addfilterbtn">+</button><br />
					<button id="delfilterbtn">-</button><br /><button id="showfiltersbtn">~</button></div><br style="clear:both;" />
					<span class="tip">Creating new filters is easy; just look at a sample link that you want matched, remove parts of it as long as it still resembles a link scheme specific to your torrent site, then follow these rules:<br />
						- escape (put a backslash in front of) every: &quot;.&quot;, &quot;/&quot;, &quot;?&quot;<br/>
						- replace dynamic parts: (&quot;\d+&quot; matches any number, e.g. torrent ID, &quot;.+?&quot; matches any character, &quot;[:alpha:]&quot; matches any string containing letters or numbers)<br />
						<a target="_blank" href="http://www.regular-expressions.info/reference.html">more detailed information</a></span>
				</td>
			</tr>
		</table></div>
		
		<div id="tabs-4"><table>
			<tr>
				<td><span class="title">About the extension</span></td>
				<td>This extension lets you silently add torrent files to a BitTorrent client's web interface, either running on a remote server, or on your local computer. It lets you manually add torrents from a link's context menu, or can automatically find links that have torrents in them, using configurable regular expression filters, so that you only have to click on such a link to automatically load it into the configured client.</td>
			</tr>
			<tr><td colspan="2">&nbsp;</td></tr>
			<tr>
				<td><span class="title">Info/FAQ/Changelog</span></td>
				<td>Most non-bug related questions that arise in regard to this extension are about links that don't get caught. This extension finds these links through the use of regular expressions. A basic description on how to configure your own filters among other information can be found via this link:<br/>
				<a target="_blank" href="http://code.google.com/p/remote-torrent-adder/">http://code.google.com/p/remote-torrent-adder/</a></td>
			</tr>
			<tr><td colspan="2">&nbsp;</td></tr>
			<tr>
				<td><span class="title">Problems/Bugs</span></td>
				<td>If you find a bug, or have a feature request, please create an issue ticket on the project's Google Code issue tracker. This is the best route of reaching me:<br/>
				<a target="_blank" href="https://code.google.com/p/remote-torrent-adder/issues/list">Remote Torrent Adder Google Code Issue Tracker</a><br/><br/>
				For bugs, please supply the Google Chrome version you're using as well as a description of your behavior, the extension's misbehavior, what you were expecting to happen.<br/>
				For new web interface support requests, please supply a link to the client's web site or its web interface documentation (or an alternative open source remote adding implementation).</td>
			</tr>
			<tr><td colspan="2">&nbsp;</td></tr>
			<tr>
				<td><span class="title">Source code</span></td>
				<td>The Google Code repository for this project will always contain the latest version of the source code of this extension. Feel free to clone it and send in patches if you think they're worth publishing.<br/>
				<a target="_blank" href="https://code.google.com/p/remote-torrent-adder/source/checkout">Remote Torrent Adder Google Code project</a></td>
			</tr>
			<tr><td colspan="2">&nbsp;</td></tr>
			<tr>
				<td><span class="title">Mission Statement</span></td>
				<td>This extension to the Google Chrome web browser was created to facilitate the easy (and possibly silent) adding of torrent files to BitTorrent clients' web interfaces. This improves on two minor downsides of the Google Chrome web browser as compared to the much more configurable and extensible Firefox web browser:<br/><br/>
				At the time of the conception of this extension,
				<ol>
					<li>... Google Chrome did not have the ability to automatically open downloaded files based on their file type. Thus, the act of adding a torrent file to a local BitTorrent client required additional, superfluous clicks. This extension reduces the amount of clicks to just the one click on the original web link.</li>
					<li>... there was no Google Chrome extension performing the task that <a target="_blank" href="http://www.alexisbrunet.com/">Alexis Brunet</a>'s BitTorrent WebUI Firefox Extension does. Its functionality, again easing the life of people who operate BitTorrent clients that are on remote servers, is done by removing unnecessary clicks from the process. The tedious sequence of downloading a torrent file, opening up the remote web interface, searching for and uploading the file is reduced to, again, one single click.</li>
				</ol>
				From a developer's standpoint, this extension has been written to be more or less plug and play. Support for each web interface is encapsulated in javascript functions, message passing between a content script that tracks torrent-links and the background script that does all the hard work facilitates all of the main functionality. Barely anything is commented, and there is next to no object orientation going on in the source code, so it's not the prettiest code. But since this started out mostly as a proof of concept to myself and most parts of it are either pretty self-explanatory, or hacked together using some rather new javascript methodologies (e.g. typed arrays), i don't see a reason to change that in the near future.
				</td>
			</tr>
			<tr><td colspan="2">&nbsp;</td></tr>
			<tr>
				<td><span class="title">About the Developer</span></td>
				<td>My name is Julian and i study Computer Science in Germany's beautiful university town of Heidelberg.<br/><br/>
				If you like this extension a lot and/or have too much money on your hands, please consider donating one or two beers worth of it to my Paypal account or Bitcoin wallet:<br/>
				<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="margin-bottom: 0px;">
					<input type="hidden" name="cmd" value="_s-xclick" />
					<input type="hidden" name="hosted_button_id" value="E7PGHLKHR4GJL" />
					<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" />
					<img alt="" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" width="1" height="1" />
				</form>
				Bitcoin address: <a href="bitcoin:15VMf7nUNgCutmQrGKu2gSQaLYfG9VtH74?label=Remote%20Torrent%20Adder">15VMf7nUNgCutmQrGKu2gSQaLYfG9VtH74</a><br/>
				Be aware however that I may use it to buy a good bluray or pay tuition instead of fueling my liver's demise. All bets are off.
				</td>
			</tr>
		</table></div>
		
	</div>
</body>
</html>